<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>问卷调查-列表</title>
<link rel="shortcut icon" href="/html/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/global.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/css/manage.css" />
<script src="/Public/Static/jquery-1.9.1.min.js"></script>
</head>
<body class="global_form global_table global_icon global_formList">
<div class="global_head"></div>
<div class="global_width">
  <div class="global_leftMenu"> </div>
  <div class="global_right manage_survey">
    <div class="rightTitle font_green01"><em class="line"></em>问卷调查 <a class="create_new" href="<?php echo U('paperEdit');?>">新建问卷</a> </div>
    <div class="rightBody survey_main">
      <?php if(count($list) > 0): if(is_array($list)): foreach($list as $key=>$val): ?><div class="list">
          <dl>
            <dt><span class="form_icon"></span><?php echo ($val['name']); ?></dt>
            <dd class="time"><span></span><?php echo ($val['description']); ?></dd>
            <dd class="num"><span></span>共30份答卷</dd>
          </dl>
          <ul>
            <li><a href="<?php echo U('paperEdit',array('id'=>$val['id']));?>">编辑</a></li>
            <li><a href="#">查看问卷</a></li>
            <li><a href="javascript:void(0);" onclick="del(<?php echo ($val['id']); ?>);">删除</a></li>
            <li class="more">更多<span class="icon down"></span>
             <div class="menuWrap">
             <div class="subMenu">
                <div><a href="###">数据统计</a></div>
                <div class="arrow"></div>
             </div>
             </div>
            </li>
          </ul>
          <div class="clear"></div>
        </div><?php endforeach; endif; ?>
        <?php else: ?>
        <div class="manage_main"  id="tipList"> <a class="none">暂无数据！</a><?php endif; ?>
      </div>
    </div>
  </div>
</div>
<script>
function del(id){
	$.post("<?php echo U('paperDel');?>",{'id':id},function(msg){
		if (msg != 0) {
			location.reload();
		}
	});
}
</script>
</body>
</html>